package com.example.hrdemo.api.util;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserAllPageResult<T> {
    //是否结束
    private Boolean isEnd;
    //列表
    private T userAllVo;

    public static <T> UserAllPageResult<T> success(int total,int pageSize,T userAllVo,Boolean isEnd){
        UserAllPageResult<T> userAllPageResult = new UserAllPageResult<>();
        userAllPageResult.setIsEnd(isEnd);
        userAllPageResult.setUserAllVo(userAllVo);
        return userAllPageResult;
    }
}
